<extend name="Index/index" />
<block name="head">
<style type="text/css">
    #pages a,#pages span{
        background-color: #fff;
        border: 1px solid #ddd;
        color: #337ab7;
        float: left;
        line-height: 1.42857;
        margin-left: -1px;
        padding: 6px 12px;
        position: relative;
        text-decoration: none;
    }
    #pages span{
        background:#337ab7;
        color:white;
    }
</style>
</block>
<block name="center">

<!-- <div class="portlet-body">
    <div class="note note-info" style="height:50px;line-height:50px;margin:0px;">
        <h4 class="box-heading">分类列表</h4>
    </div>
    
</div> -->
<div class="col-lg-12" style="padding:0px;">
    <div class="portlet box">
        <div class="note note-info" style="height:50px;line-height:50px;margin:0px;">
            <h4 class="box-heading">评论列表</h4>
        </div>
        <div class="portlet-body">
            <div class="row mbm">
                <div class="col-lg-12">
                    <div class="table-responsive">
                        <div id="table_id_wrapper" class="dataTables_wrapper form-inline no-footer">
                            <form action="" method="get">
                            <div class="row">
                                <div class="col-md-5">
                                    <div class="dataTables_length" id="table_id_length">
                                        <label>显示
                                            <select name="num" aria-controls="table_id" class="form-control input-sm">
                                                <option value="10" <if condition="$_GET['num'] eq 10 ">selected</if>>10</option>
                                                <option value="25" <if condition="$_GET['num'] eq 25 ">selected</if>>25</option>
                                                <option value="50" <if condition="$_GET['num'] eq 50 ">selected</if>>50</option>
                                            </select> 条
                                        </label>
                                    </div>
                                </div>
                                <div class="col-md-3">
                                    <div id="table_id_filter" class="dataTables_filter">
                                        <label>
                                            <div class="input-group input-group-sm mbs">
                                                <input type="search" name="keywords" class="form-control input-sm" placeholder="" aria-controls="table_id" value="{:empty($_GET['keywords']) ? '' : $_GET['keywords']}">
                                                <span class="input-group-btn">
                                                    <button   class="btn btn-success dropdown-toggle">搜索</button>
                                                </span>
                                            </div>
                                        </label>
                                    </div>
                                </div>
                            </div>
                            </form>
                            <table id="table_id" class="table table-hover table-striped table-bordered table-advanced tablesorter display dataTable no-footer" role="grid">
                                <thead>
                                    <tr role="row">
                                        <th  class="sorting" tabindex="0" aria-controls="table_id" rowspan="1" colspan="1" aria-label="Rec #: activate to sort column ascending" style="width: 30px;">ID</th>
                                        <th class="sorting" tabindex="0" aria-controls="table_id" rowspan="1" colspan="1" aria-label="Username: activate to sort column ascending" style="width: 75px;">用户名</th>
                                        <th  class="sorting" tabindex="0" aria-controls="table_id" rowspan="1" colspan="1" aria-label="Country: activate to sort column ascending" style="width: 75px;">美食名称</th>
                                        <th  class="sorting" tabindex="0" aria-controls="table_id" rowspan="1" colspan="1" aria-label="Gender: activate to sort column ascending" style="width: 140px;">评论的内容</th>
                                        <th  class="sorting" tabindex="0" aria-controls="table_id" rowspan="1" colspan="1" aria-label="Order: activate to sort column ascending" style="width: 100px;">评论的时间</th>
                                        <th  class="sorting" tabindex="0" aria-controls="table_id" rowspan="1" colspan="1" aria-label="Date: activate to sort column ascending" style="width: 40px;">评论的分数</th>
                                        <th  class="sorting" tabindex="0" aria-controls="table_id" rowspan="1" colspan="1" aria-label="Price: activate to sort column ascending" style="width: 40px;">操作</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <foreach name="info" item="vo" >

                                    <tr role="row" class="odd">
                                        <td>{$vo['id']}</td>
                                        <td>{$vo['uid']}</td>
                                        <td>{$vo['fid']}</td>
                                        <td>{$vo['comment']}</td>
                                        <td>{:date('Y-m-d H:i:s',$vo['comtime'])}11</td>
                                        <td>
                                            <span class="label label-sm label-success">{$vo['score']}</span>
                                        </td>
                                        <td>
                                            <a href="{:U('Admin/Comment/delete',array(id=>$vo['id']))}"><button type="button" class="btn btn-danger btn-xs"><i class="fa fa-trash-o"></i>&nbsp; Delete</button></a>
                                        </td>
                                    </tr>
                                    </foreach>
                                </tbody>
                                
                            </table>
                            <div class="col-md-6" style="width:1000px;">
                                <div class="dataTables_paginate paging_simple_numbers" id="example1_paginate">
                                    <ul class="pagination" style="margin-left:800px">
                                        <li class="paginate_button previous" aria-controls="example1" tabindex="0" id="example1_previous">
                                            <div id="pages">{$pages}</div>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>



</block>